package com.sixbro.shiro.uaa.realm;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * <p>
 *
 * </p>
 *
 * @Author: Mr.Lu
 * @Since: 2020/6/19 18:02
 */
public class ResourceServerToken implements AuthenticationToken {

    private String accessToken;

    private String credentials;

    public ResourceServerToken(String accessToken, String credentials) {
        this.accessToken = accessToken;
        this.credentials = credentials;
    }

    @Override
    public Object getPrincipal() {
        return accessToken;
    }

    @Override
    public Object getCredentials() {
        return credentials;
    }
}